/**
 * @author beliveli on 2016/8/5/0005
 */
public class test {
    public static void main(String[] args){
        String a = "0120030000";

        String b = a.replaceAll("0*$","");
        System.out.println(b);
        System.out.println(a);
    }
}
